﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace CouplingBeamStiff
{
    class Rectangular
    {
        /// <summary>
        /// 矩形宽度
        /// </summary>
        protected double Width { get; set; }

        /// <summary>
        /// 矩形高度
        /// </summary>
        protected double Height { get; set; }

        /// <summary>
        /// 左下角节点
        /// </summary>
        protected Node NodeI { get; set; }

        /// <summary>
        /// 材料
        /// </summary>
        protected Material Material { get; set; }

        /// <summary>
        /// 构造函数
        /// </summary>
        /// <param name="width"></param>
        /// <param name="height"></param>
        /// <param name="node"></param>
        public Rectangular(double width, double height, double x, double y, Material material)
        {
            this.Width = width;
            this.Height = height;
            this.NodeI = new Node(x, y);
            this.Material = material;
        }

        /// <summary>
        /// 获得材料
        /// </summary>
        /// <returns></returns>
        public Material GetMaterial()
        {
            return this.Material;
        }
    }
}
